home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
os2
/
pccts.zip
/
TTREE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-08
|
644b
|
24 lines
/* Code to manage type trees for each type
* These trees then can be used to determine whether varibles have the
* same type.
*
* Will Cohen
* 12/18/90
*/
#define tnode struct _tnode_
tnode {
tnode *down,*right; /* everything in child-sibling tree */
int n_type; /* indicates what kind of node this is */
};
/* types of tnodes */
/* functions */
extern int compatible(/*t1,t2*/); /* returns 0 for incompatible, 1 for */
/* compatible */
extern int acompatible(/*t1,t2*/); /* returns 1 if can assigment okay */
/* t1<-t2 */
extern tnode *new_tnode(); /* makes and fills in a tnode */